﻿using Md.Api.Model.Manage.MdProductOrder.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Manage.MdProductOrder;
/// <summary>
/// 通过订单编号获取订单详情服务
/// </summary>
public class GetMdProductOrderByIdService : ApiBase<RequestGetMdProductOrderByIdModel>
{
    /// <summary>
    /// 订单仓储
    /// </summary>
    public MdProductOrderRep mdProductOrderRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = mdProductOrderRep.GetMdProductOrderById(Parameter.OrderId);

        Result.Data = res;
    }
}

